﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WSCeCommerce.Helpers;
namespace ResetDatabase
{
    class Program
    {
        static void Main(string[] args)
        {

            Console.WriteLine("Confirm reset database? Press 'y'");

            ConsoleKeyInfo key = Console.ReadKey();

            if (key.KeyChar == 'y')
            {
                WSCeCommerceDBContext context = new WSCeCommerceDBContext();
                context.Database.Delete();
                context.Database.Create();
            }

        }
    }
}
